package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SJoinGroup extends Object implements IMessageBase
    {
        public var groupId:SEntityId;
        public var pwd:String;
        public var fighting:Boolean;
        public const _type:int = 20405;
        public static var _regist:SJoinGroup = new SJoinGroup(true);

        public function SJoinGroup(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SJoinGroup();
        }

        public function __write(param1:SerializeStream) : void
        {
            this.groupId.__write(param1);
            param1.writeString(this.pwd);
            param1.writeBool(this.fighting);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.groupId = new SEntityId();
            this.groupId.__read(param1);
            this.pwd = param1.readString();
            this.fighting = param1.readBool();
            
        }

    }
}
